package com.tuanzi.loan.workflow.entity;

import java.io.Serializable;

import javax.persistence.*;

import lombok.Data;

/**
 * @author Ray
 * @date 2018/01/17
 */
@Data
@Entity
@Table(name = "ACT_EXT_FORM_RIGHT")
public class FormRight implements Serializable {

	private static final long serialVersionUID = 8460807773277129328L;
	public static final String RIGHT_CODE_APPROVAL = "approval";
	public static final String RIGHT_CODE_APPROVAL_COND = "approval_cond";
	public static final String RIGHT_CODE_REFUSAL = "refusal";
	public static final String RIGHT_CODE_REJECT = "reject";
	public static final String RIGHT_CODE_TRANSFER = "transfer";

	public static final Integer RIGHT_VALUE_EDIT = 1;
	public static final Integer RIGHT_VALUE_READONLY = 2;
	public static final Integer RIGHT_VALUE_DISPLAY = 3;

	/** 主键 ID */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;

	/** 流程定义id */
	@Column(name = "PROC_DEF_ID")
	private String procDefId;

	/** 控制节点id */
	@Column(name = "ACT_ID")
	private String actId;

	/** 权限编码 */
	@Column(name = "RIGHT_CODE")
	private String rightCode;

	/** 权限值 : 1:可编辑，2-只读可见，3-不可见 */
	@Column(name = "RIGHT_VALUE")
	private Integer rightValue;

	/** 显示顺序 */
	@Column(name = "ORDER_NO")
	private Integer sort;

}
